package com.ljw;

import java.awt.EventQueue;

import javax.swing.JFrame;

public class MovingSpriteEx extends JFrame{
	
	public MovingSpriteEx(){
		initUI();
	}

	private void initUI() {
		add(new Board6());
		setSize(400, 300);
		setResizable(false);
		
		setTitle("Moving sprite");
		setLocationRelativeTo(null);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}
	
	public static void main(String[] srags){
		EventQueue.invokeLater(new Runnable(){
			@Override
			public void run() {
				JFrame je = new MovingSpriteEx();
				je.setVisible(true);
			}
		});
	}
}